package com.foreknow.OOP;

import com.foreknow.demo6.Employee;

public class TestEmployee {
    public static void main(String[] args) {
        Employee emp = new Employee();
        //调用set方法给card属性设置一个值
        emp.setCardNo(1001);
        //调用get方法来获取到card属性值
        int num = emp.getCardNo();
        emp.setEmpName("hello");
        String name = emp.getEmpName();
        emp.setDept("001");
        String deptno = emp.getDept();
        emp.setSalary(200.2);
        double salary = emp.getSalary();
        System.out.printf("%d---%s---%s----%f",num,name,deptno,salary);
    }
}
